/*
    数组动态初始化

    数组元素访问
 */
public class ArrIndex {
    public static void main(String[] args) {
        //数组动态初始化
        int[] arr = new int[3];
        //数组地址
        System.out.println(arr);
        //数组元素 默认初始化为0
        System.out.println(arr[0]);
        System.out.println(arr[1]);
        System.out.println(arr[2]);
        System.out.println();
        //修改数组元素[索引]
        arr[0] = 2;
        arr[1] = 13;
        arr[2] = 89;
        System.out.println(arr[0]);
        System.out.println(arr[1]);
        System.out.println(arr[2]);

    }
}
